package cn.trip.service.user;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.trip.pojo.Safe_question;
import cn.trip.pojo.Trip_bill;
import cn.trip.pojo.Trip_question;
import cn.trip.pojo.Trip_room;
import cn.trip.pojo.Trip_tourist;
import cn.trip.pojo.Trip_user;

public interface UserService {
	
	public Trip_user getUser(String userCode,String password);
	
	public boolean modifyInfo(Trip_user user);
	
	public List<Trip_bill> getAllBills(String userCode,int currentPageNo,int pageSize);
	
	public List<Trip_bill> getBillsById(String userCode,int u_id,int proType,int currentPageNo,int pageSize);
	
	public Trip_bill getHotelBillsBybid(int b_id);
	
	public Trip_bill getTravelBillsBybid(int b_id);
	
	public List<Trip_tourist> getTourists(int b_id);
	
	public List<Trip_bill> getTicketBills(int u_id,int proType,Integer currentPageNo,Integer pageSize);
	
	public int count(int u_id,int proType);
	
	public Trip_bill getTicketInfo(int b_id,int proType);
	
	public boolean delete(int b_id);
	
	public Trip_user getPawUser(String userCode);
	
	public Trip_user judgePwd(String userCode,String password);
	
	public boolean modifyPaw(String password,String userCode);
	
	public Trip_user getQuestionBySid(int s_id);
	
	public Safe_question judgeQuestion(int id);
	
	public List<Trip_question> getAllQuestions();
	
	public boolean modifyQuestion(int questionId,Date modifyDate,int id,String answer);
	
	public boolean addAnswer(int questionId,String answer,Date createDate,String userCode);
	
	public Safe_question getQ_id(String userCode);
	
	public boolean addUser(String userCode,String userName,String password,Date createDate,
			String userEmail,int s_id,String userPhone,String userAddress,Date birth,int sex);
	
	public Safe_question judQuestion(int questionId,String answer);
	
	public boolean modifyPwd(String password,Date modifyDate,String userCode);
	
	public Safe_question getThisQuestion(String userCode);
	
	public Trip_question getThisQuestionByQ_id(int q_id);
	
	public boolean modifyIspay(Integer b_id,Integer isPay);
	
}
